home *** CD-ROM | disk | FTP | other *** search
- // ****************************************************************************************
- // * *
- // * Egypte 2 : Script *
- // * *
- // * SΘquence 006 : Maison de vie est *
- // * *
- // ****************************************************************************************
- // * v0.0 : 29/11/1999 - GrΘgory JOSEPH *
- // * v1.0 : 07/01/2000 - GrΘgory JOSEPH *
- // **************************************
- [S006]
-
-
- // **************************************
- // * WamEdit *
- // **************************************
- // Outils1 pas clickable
- // Encre pas clickable
-
-
- :init
- begin
- set tempsAvantToctoc = 0
-
- end
-
-
- :loop
- begin
- //******* Gestion de la mussique *************//
- if TIME4 >= 200 then
- if musiqueEnCours = 0 then
- // rien
- else
- music musiqueEnCours
- set oldMusiqueEnCours = musiqueEnCours
- set TIME4 = 0
- endif
-
- elif not oldMusiqueEnCours = musiqueEnCours then
- if musiqueEnCours = 0 then
- // rien
- else
- music musiqueEnCours
- set oldMusiqueEnCours = musiqueEnCours
- set TIME4 = 0
- endif
-
- // else
- // if musiqueEnCours = 0 then
- // // rien
- // else
- // music musiqueEnCours
- // set oldMusiqueEnCours = musiqueEnCours
- // set TIME4 = 0
- // endif
- endif
-
- if Warp_Current = 6 then
- if tempsAvantToctoc = 1 then
- if Warp_To = 5 or Warp_To = 7 or Warp_To = 8 or Warp_To = 9 Then
- hideSpw "Oiseaux_S006" NoWamCheck
- set tempsAvantToctoc = 0
- endif
-
- elif Warp_From = 5 Then
- set tempsAvantToctoc = 1
- if random % 2 = 0 then
- sound "52"
- showSpw "Oiseaux_S006" 5 once
- showSpw "Oiseaux_S006" 5 next FIRST
- endif
- endif
- endif
-
- // **************************************
- // * Dialogue avec Menna *
- // **************************************
- if Mouse_Click = "ScribeEcole_S006" then
- if not bAnimLaunched = 1 then
- showspw "ScribeEcole_S006" 3 once wait
- // set bAnimLaunched = 1
- endif
- if partie = 2 and hand = "" then
- if D014 and not GotOutils1 then
- Dialog "HR016S01" "ScribeEcole_S006" 2 1
- elif D017 and not GotEncre then
- Dialog "HR018S01" "ScribeEcole_S006" 2 1
- elif not D020 then
- Dialog "SE015S01" "ScribeEcole_S006" 2 1
- else
- Dialog "SE909S01" "ScribeEcole_S006" 2 1
- endif
-
- else
- if random % 2 = 0 then
- Dialog "SE839S01" "ScribeEcole_S006" 2 1
- else
- Dialog "SE840S01" "ScribeEcole_S006" 2 1
- endif
- endif
-
- showspw "ScribeEcole_S006" 3 once reverse
- sound "14"
- showspw "ScribeEcole_S006" 4 next
-
-
- // **************************************
- // * Dialogue avec le Grand Pretre *
- // **************************************
- elif Mouse_Click = "GrandPretre_S006" then
- if partie = 2 then
- if hand = "" then
- Dialog "PR043S01" "GrandPretre_S006" 2 1
-
- elif hand = "EpiEmpoisonne" then
- if "EpiEmpoisonne" in invent and "BagueRapport" in invent then
- wait 1
-
- set invent = invent - "EpiEmpoisonne"
-
- set hand = "BagueRapport"
- wait 1
-
- set invent = invent - "BagueRapport"
-
- if "PapyrusLegende" in invent then
- set hand = "PapyrusLegende"
- wait 1
-
- set invent = invent - "PapyrusLegende"
- endif
-
- Dialog "PR044S02" "GrandPretre_S006" 2 1
- set partie = 3
- set SP = 12
- // Minute 28
- set oldMusiqueEnCours = musiqueEnCours
- set musiqueEnCours = 5
-
- // FMV "ClozSilo" PauseMusic
-
- ShowSpw "PetitGarcon_S006" 3 once
- // automove "PetitGarcon_S006"
- ShowSpw "PetitGarcon_S006" 4 next
- else
- Dialog "PR144S01" "GrandPretre_S006" 2 1
- endif
-
- elif hand = "PapyrusLegende" then
- Dialog "PR144S01" "GrandPretre_S006" 2 1
-
- elif hand = "BagueRapport" then
- Dialog "PR144S01" "GrandPretre_S006" 2 1
- else
- if random % 2 = 0 then
- Dialog "PR842A01" "GrandPretre_S006" 2 1
- else
- Dialog "PR843A01" "GrandPretre_S006" 2 1
- endif
- endif
-
- elif partie = 3 and hand = "" then
- Dialog "PR122S01" "GrandPretre_S006" 2 1
- else
- if random % 2 = 0 then
- Dialog "PR842A01" "GrandPretre_S006" 2 1
- else
- Dialog "PR843A01" "GrandPretre_S006" 2 1
- endif
-
- endif
-
-
-
- // **************************************
- // * Dialogue avec le petit Ipouky *
- // **************************************
- elif Warp_Current = 6 and partie = 3 and not D045 then
- Dialog "PG045S01" "PetitGarcon_S006" 1 2
- ShowSpw "PetitGarcon_S006" 3 next once wait
- HideSpw "PetitGarcon_S006"
-
- // **************************************
- // * Ramassage outils 1 *
- // **************************************
- elif Mouse_Click = "Outils_1" then
- if not D014 then
- Dialog "HR188V01" off
- elif Hand = "" then
- HideSpw "Outils_1"
- set Invent = Invent + "Outils_1"
- set GotOutils1 = 1
- endif
-
-
-
- // **************************************
- // * Ramassage encre *
- // **************************************
- elif Mouse_Click = "Encre" then
- if not D017 then
- Dialog "HR188V01" off
- elif Hand = "" then
- HideSpw "Encre"
- set Invent = Invent + "Encre"
- set GotEncre = 1
- set SP = 5
- HideSpw "ScribeBibliotheque_S007"
- endif
-
-
-
- // **************************************
- // * Sortie *
- // **************************************
- elif Mouse_Click = "zS007" then
- AutoMove "zS007"
- Jump "MaisnVie" "S007" 4 Fade
- endif
-
- if Warp_to > 0 and bAnimLaunched = 1 then
- set bAnimLaunched = 0
- showspw "ScribeEcole_S006" 4
- endif
- end